package bz.ziro.kanbe.controller.mng.browser;

import java.util.logging.Logger;
import org.slim3.controller.Controller;
import org.slim3.controller.Navigation;

import bz.ziro.kanbe.dao.TemplateBrowserDao;
/**
 * ブラウザデータの削除
 * @author Administrator
 */
public class DeleteController extends Controller {

    @SuppressWarnings("unused")
    private static final Logger logger = Logger.getLogger(DeleteController.class.getName());

    @Override
    public Navigation run() {

        //サイトのキーを取得
        String siteKeyBuf = sessionScope("siteKey");
        String templateKeyBuf = param("tempKey");
        String keyBuf = param("browserKey");
        //データを削除
        TemplateBrowserDao.delete(Long.valueOf(siteKeyBuf),
                                  Long.valueOf(templateKeyBuf),
                                  Long.valueOf(keyBuf));
        return null;
    }
}
